﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="Courses.aspx.cs" Inherits="admin_Courses" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    All Courses
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="ElearningDataContext" EntityTypeName="" TableName="Courses" EnableDelete="True" EnableInsert="True" EnableUpdate="True">
    </asp:LinqDataSource>
    <asp:GridView ID="GridView1" CssClass="table table-bordered table-responsive table-hover table-stripped" runat="server" AllowSorting="True" DataSourceID="LinqDataSource1" AutoGenerateColumns="False" DataKeyNames="id" ShowFooter="false">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True" SortExpression="id" Visible="false" />
            <asp:BoundField DataField="shortDescription" HeaderText="Description" SortExpression="shortDescription" />
            <asp:BoundField DataField="courseOutline" HeaderText="Outline" SortExpression="courseOutline" />
            <asp:BoundField DataField="learningObjectives" HeaderText="Learning Objectives" SortExpression="learningObjectives" />
            <asp:BoundField DataField="prerequisites" HeaderText="Prerequisites" SortExpression="prerequisites" />
            <asp:BoundField DataField="price" HeaderText="Price" SortExpression="price" />
            <asp:BoundField DataField="location" HeaderText="Location" SortExpression="location" />
            <asp:BoundField DataField="courseName" HeaderText="Name" SortExpression="courseName" />
            <asp:BoundField DataField="partsNr" HeaderText="Parts" SortExpression="partsNr" />
        </Columns>
    </asp:GridView>
    <asp:Button ID="Button1" runat="server" Text="Add Course" CssClass="btn btn-primary btn-lg active" OnClick="Button1_Click" />



</asp:Content>

